home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
17
/
2
/
DISK1720.ZIP
/
HYPMAIN.LZH
/
CAI.HYP
< prev
next >
Wrap
Text File
|
1991-04-24
|
6KB
|
363 lines
.REMARK
Computer Aided Instruction demo
This demonstrates the questioning part of CAI only.
Normally there would be instructional frames followed
by questions, with return to the instructions if answers
are incorrect.
There are many other ways of handling CAI, including use of
selection from graphic images, selection of answer using mouse,
and rapid progress routes when scoring is high.
.SCRIPT RESET
VT0
VC0
VW0
VF4;Y Number of frames
VO0
VQ4
Va--------;Vb--------;Vc--------
.SCRIPT SETUP
VS&C59
VN~g ~APress space for next question~PZL1x$SF+~K ~E
.REMARK
This script allows 5 seconds to choose an answer
then times out. It tallies timeouts, correct and wrong answers.
It then waits for 5 seconds or key press before next question.
Note .5 second catch for key presses just after the timeout.
.SCRIPT Choose
VR&G500;jbTIMEOUT
vR$\;jnWRONG
VMCORRECT - Well done~g
VC=C+1
JNEXT
LTIMEOUT
VMOut of time
VT=T+1
JPMESS
LWRONG
VW=W+1
VMWrong
LPMESS
VM$M - the answer was number $\~g
LNEXT
ZL1
.SCRIPT Timing
Y&H
VR&K
VT&J;VO=O+T
vR$\;jnWRONG
VMCORRECT - Well done~g
VC=C+1
JNEXT
LWRONG
VW=W+1
VMWrong
LPMESS
VM$M - the answer was number $\~g
LNEXT
ZL1
.SCRIPT check
ZX20;ZY18
vawent;jeOK1
P$a is incorrect
Vawent
LOK1
vbbought;jeOK2
P$b is incorrect
Vbbought
LOK2
vcprice;jeOK3
P$c is incorrect
Vcprice
LOK3
y
.
.FRAME MENU
.TITLE Select type
[1] 1. ~FMultiple choice with timeout~PFTimeout~K1~E
[2] 2. ~FMultiple choice with timing~PFTiming~K2~E
[3] 3. ~FGap filling~K3~E
[4] 4. ~FChoice in line~K4~E
[q] q. ~FQuit~PQ~Kq~E
~A~PSRESET~E~Q
.FRAME Timeout
.TITLE Multiple choice with timeout
This set of frames illustrates the multiple choice
form of questioning, with timeouts on the response.
5 seconds are given to answer each question.
Scores are tallied for:-
Correct answers
Wrong answers
Timeouts
And a percentage and rating are given
[ ] ~APress space to start~PF+~K ~E
.FRAME Question 1
.TITLE Hard
What is an ECHIDNA
1. A kind of rare plant
2. A cast iron fireplace
3. A part of the body
4. A relative of the duck billed platypus
~h1 $M
~h1 An Echidna, or spiny ant eater, is an egg laying mammal
~h1 related to the duck-billed platypus, or Ornitherinchus
~h1 $N
~A~PSchoose(4)~E~Q
.
.FRAME Question 2
.TITLE Easy
How many buns in a bakers dozen
1. 11
2. 12
3. 13
4. 24
~h1 $M
~h1 A bakers dozen is named after the old practise of
~h1 bakers giving an extra bun with each dozen.
~h1 $N
~A~PSchoose(3)~E~Q
.
.FRAME Question 3
.TITLE Hard
Where is Egypt
1. Near Bradford
2. South of Kensington
3. In Mid Glamorgan
4. Just outside Edinburgh
~h1 $M
~h1 There are a number of small villages to the west of
~h1 Bradford in West Yorkshire with names such as Egypt
~h1 and Jericho. At Jericho there is a cutting with high
~h1 walls, known as 'the walls of Jericho'.
~h1 $N
~A~PSchoose(1)~E~Q
.
.FRAME Question 4
.TITLE Hard
What does the &K function do
1. Return a key mapping
2. Return the key pressed at a prompt
3. Kill the program
4. Return the memory available as K bytes
~h1 $M
~h1 The &K function issues a popup prompt, and
~h1 returns the character for the key pressed in response.
~h1 $N
~A~PSchoose(2)~E~Q
.
.FRAME Report 1
.TITLE How well did you do
Number of questions - $F
Number of correct answers - $C
Number of incorrect answers - $W
Number of timeouts - $T
~A~Psscore~E~Q
[ ] ~APress space to return to main menu~PFMENU~K ~E
.
.SCRIPT score
VP=C*100/F
vP25;jlBAD
vP50;jlAVERAGE
vP75;jlGOOD
VGBrilliant
JDISP
LBAD
VGPretty aweful
JDISP
LAVERAGE
VGAverage
JDISP
LGOOD
VGVery good
LDISP
pYou scored $P percent correct - That's $G
.
.FRAME Timing
.TITLE Multiple choice with timing
This example shows how multiple choice with timing
of responses can be handled.
[ ] ~APress space to start~PF+~K ~E
.
.FRAME Q 1
.TITLE Example
What is 2 times 3 plus 7
1. 13
2. 20
3. 17
~h1 $M
~h1 3 times 2 = 6, plus 7 = 13
~h1 $N
~A~PSTiming(1)~E~Q
.
.FRAME Q 2
.TITLE Example
What is 7 times 11 plus 4
1. 79
2. 81
3. 75
~h1 $M
~h1 7 times 11 = 77, plus 4 = 81
~h1 $N
~A~PSTiming(2)~E~Q
.
.FRAME Q 3
.TITLE Example
What is 9 times 9 plus 9
1. 99
2. 87
3. 90
~h1 $M
~h1 9 times 9 = 81, plus 9 = 90
~h1 $N
~A~PSTiming(3)~E~Q
.
.FRAME Q 4
.TITLE Example
What is 11 times 11 plus 7
1. 127
2. 128
3. 129
~h1 $M
~h1 11 times 11 = 121, plus 7 = 128
~h1 $N
~A~PSTiming(2)~E~Q
.
.FRAME Report 2
.TITLE Timing report
Number of questions $Q
Number correct $C
Number wrong $W
Average response time $A seconds
~A~Pscalc~E~Q
[ ] ~APress space to return to main menu~PFMENU~K ~E
.
.REMARK
Calculate average response in seconds / hundredths
.SCRIPT calc
VA=O/Q
VB=A/100
VA=A-B*100
vA10;alVA0$A
VA$B.$A
y
.
.FRAME Gap Filling
.TITLE Fill in the gaps
~A~PZX1;ZY1;I~E~Q
Fill in the missing words.
Yesterday I ~I$a~W10~PVa%s;I~E shopping and ~I$b~W10~PVb%s;I~E a
shirt. The ~I$c~W10~PVc%s;Scheck~E of the shirt was 25 pounds.
[ ] ~APress space to return to main menu~PFMENU~K ~E
.
.FRAME Choice in line
.TITLE Fill in the gaps
~A~PZX1;ZY1~E~Q
Fill the missing words by selecting from menus
select menu for line with keys 1,2 and 3.
[1] Yesterday I ~A$a~PZX70;Va@mline 1;y~K1~E shopping
[2] and ~A$b~PZX70;Vb@mline 2;y~K2~E a shirt.
[3] The ~A$c~PZX70;Vc@mline 3;y~K3~E of the shirt was 25 pounds.
[c] ~APress 'c' to check answer~PScheck~Kc~E
[ ] ~APress space to return to main menu~PFMENU~K ~E
.
.MENU Line 1
will go
went
go
whent
was
.MENU Line 2
bort
buyed
sold
bought
buy
.MENU Line 3
size
price
wrapping
pay
box
label
.